<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>Powered by JiushiTeam - 2025</title>
    <style>
        * {
            box-sizing: border-box;
        }

        body {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background-color: #ffe6f2;
            flex-direction: column;
            font-family: 'Arial', sans-serif;
            overflow-x: hidden;
            position: relative;
            padding: 20px;
        }

        .time-counter {
            position: fixed;
            top: 20px;
            left: 20px;
            right: 20px;
            color: #ff6699;
            font-size: 1em;
            background-color: rgba(255, 255, 255, 0.7);
            padding: 10px 15px;
            border-radius: 20px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            opacity: 0;
            z-index: 10;
            animation: fadeIn 1s ease-in-out forwards;
            animation-delay: 5s;
            text-align: center;
            word-break: break-word;
        }

        .envelope-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 100;
            background-color: rgba(0,0,0,0.5);
            animation: fadeOut 1s ease-in-out forwards;
            animation-delay: 5s;
        }

        .envelope {
            position: relative;
            width: 90%;
            max-width: 400px;
            height: auto;
            aspect-ratio: 400/280;
            background-color: #f8d7da;
            border-radius: 8px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.3);
            transform-style: preserve-3d;
            transform-origin: center;
            animation: envelopeFloat 3s ease-in-out infinite;
        }

        .envelope:before {
            content: '';
            position: absolute;
            top: 0;
            width: 0;
            height: 0;
            border-left: 50% solid transparent;
            border-right: 50% solid transparent;
            border-top: 35% solid #e9a5b3;
            transform-origin: top;
            transform: rotateX(0deg);
            z-index: 3;
            animation: openEnvelope 3s ease-in-out forwards;
            animation-delay: 1.5s;
        }

        .envelope-front {
            position: absolute;
            width: 100%;
            height: 100%;
            background-color: #f8d7da;
            border-radius: 8px;
            z-index: 2;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            padding: 20px;
        }

        .envelope-title {
            font-size: 1.5em;
            color: #ff3366;
            margin-bottom: 15px;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
            text-align: center;
        }

        .envelope-heart {
            font-size: 2.5em;
            color: #ff3366;
            animation: heartbeat 2s infinite;
        }

        .letter {
            position: absolute;
            width: 90%;
            height: 90%;
            background-color: white;
            border-radius: 8px;
            top: 5%;
            left: 5%;
            z-index: 1;
            box-shadow: 0 0 15px rgba(0,0,0,0.2);
            transform: translateY(100%);
            opacity: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            animation: showLetter 2s ease-in-out forwards;
            animation-delay: 3.5s;
            padding: 15px;
            box-sizing: border-box;
        }

        .letter-content {
            font-size: 1.2em;
            color: #333;
            text-align: center;
            line-height: 1.6;
        }

        @keyframes openEnvelope {
            0% { transform: rotateX(0deg); }
            70% { transform: rotateX(160deg); }
            100% { transform: rotateX(180deg); }
        }

        @keyframes showLetter {
            0% { transform: translateY(100%); opacity: 0; }
            100% { transform: translateY(0); opacity: 1; }
        }

        @keyframes envelopeFloat {
            0% { transform: translateY(0px) rotate(-2deg); }
            50% { transform: translateY(-15px) rotate(2deg); }
            100% { transform: translateY(0px) rotate(-2deg); }
        }

        @keyframes fadeOut {
            0% { opacity: 1; }
            100% { opacity: 0; visibility: hidden; }
        }

        @keyframes fadeIn {
            0% { opacity: 0; }
            100% { opacity: 1; }
        }

        .main-content {
            opacity: 0;
            animation: fadeInMain 1.5s ease-in-out forwards;
            animation-delay: 5s;
            width: 100%;
            max-width: 800px;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            margin-bottom: 50px;
        }

        @keyframes fadeInMain {
            0% { opacity: 0; transform: scale(0.95); }
            100% { opacity: 1; transform: scale(1); }
        }

        .text {
            font-size: 2em;
            color: #ff6699;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
            text-align: center;
        }

        .heart-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            max-width: 800px;
        }

        .side-text {
            width: 100%;
            color: #ff3366;
            font-size: 1em;
            text-align: center;
            line-height: 1.6;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
            margin: 15px 0;
        }

        .heart {
            position: relative;
            width: 100px;
            height: 90px;
            animation: heartbeat 1.5s infinite;
            margin: 20px auto;
            transform-origin: center;
        }

        .heart:before, .heart:after {
            position: absolute;
            content: "";
            left: 50px;
            top: 0;
            width: 50px;
            height: 80px;
            background: #ff3366;
            border-radius: 50px 50px 0 0;
            transform: rotate(-45deg);
            transform-origin: 0 100%;
        }

        .heart:after {
            left: 0;
            transform: rotate(45deg);
            transform-origin: 100% 100%;
        }

        @keyframes heartbeat {
            0% { transform: scale(1); }
            25% { transform: scale(1.1); }
            50% { transform: scale(1); }
            75% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        .hearts {
            position: fixed;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
        }

        .floating-heart {
            position: absolute;
            opacity: 0;
            font-size: 16px;
            color: #ff3366;
            animation: float 4s ease-in infinite;
        }

        @keyframes float {
            0% {
                transform: translateY(0) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateY(-100vh) rotate(360deg);
                opacity: 0;
            }
        }

        .music-player {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background-color: rgba(255, 255, 255, 0.8);
            border-radius: 20px;
            padding: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            z-index: 1000;
            transition: all 0.3s ease;
            opacity: 0;
            animation: fadeIn 1s ease-in-out forwards;
            animation-delay: 5s;
            width: 280px;
            max-width: calc(100% - 40px);
        }

        .music-player:hover {
            background-color: rgba(255, 255, 255, 0.95);
            transform: scale(1.02);
        }

        .music-cover {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 10px;
            border: 2px solid #ff6699;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .music-info-container {
            flex: 1;
            min-width: 0;
        }

        .music-title {
            font-size: 14px;
            color: #ff3366;
            font-weight: bold;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 3px;
        }

        .music-artist {
            font-size: 12px;
            color: #ff8fab;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .music-controls {
            display: flex;
            align-items: center;
            margin-top: 5px;
        }

        .play-btn {
            background: none;
            border: none;
            font-size: 18px;
            color: #ff3366;
            cursor: pointer;
            margin-right: 10px;
            outline: none;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s;
        }

        .play-btn:hover {
            background-color: rgba(255, 51, 102, 0.1);
        }

        .progress-container {
            flex: 1;
            height: 4px;
            background-color: #ffccdd;
            border-radius: 2px;
            cursor: pointer;
            margin-right: 10px;
        }

        .progress-bar {
            height: 100%;
            background-color: #ff3366;
            border-radius: 2px;
            width: 0%;
            transition: width 0.1s;
        }

        .rotate {
            animation: rotate 10s linear infinite;
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .memories-section {
            width: 100%;
            max-width: 900px;
            margin: 0 auto;
            padding: 40px 20px;
            background-color: rgba(255, 255, 255, 0.7);
            border-radius: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            opacity: 0;
            transform: translateY(50px);
            transition: all 1s ease;
            margin-bottom: 50px;
        }

        .memories-section.show {
            opacity: 1;
            transform: translateY(0);
        }

        .memories-title {
            font-size: 2em;
            color: #ff3366;
            text-align: center;
            margin-bottom: 30px;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        .memories-title:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: linear-gradient(to right, #ff6699, #ff3366);
            border-radius: 3px;
        }

        .timeline {
            position: relative;
            max-width: 800px;
            margin: 0 auto;
        }

        .timeline:before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 4px;
            height: 100%;
            background: linear-gradient(to bottom, #ff8fab, #ff3366);
            border-radius: 2px;
        }

        .memory-item {
            position: relative;
            margin-bottom: 40px;
            width: 100%;
        }

        .memory-item:nth-child(odd) .memory-content {
            margin-left: auto;
            margin-right: 50px;
            text-align: right;
        }

        .memory-item:nth-child(even) .memory-content {
            margin-left: 50px;
            text-align: left;
        }

        .memory-date {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            background-color: #ff3366;
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.9em;
            box-shadow: 0 3px 10px rgba(255, 51, 102, 0.3);
            z-index: 1;
        }

        .memory-content {
            width: calc(50% - 50px);
            background-color: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        .memory-content:before {
            content: '';
            position: absolute;
            top: 20px;
            width: 20px;
            height: 20px;
            background-color: white;
            transform: rotate(45deg);
            box-shadow: 5px -5px 10px rgba(0, 0, 0, 0.05);
        }

        .memory-item:nth-child(odd) .memory-content:before {
            right: -10px;
        }

        .memory-item:nth-child(even) .memory-content:before {
            left: -10px;
        }

        .memory-text {
            color: #555;
            line-height: 1.6;
            margin-bottom: 10px;
        }

        .memory-image {
            width: 100%;
            border-radius: 8px;
            margin-top: 10px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        .memory-image:hover {
            transform: scale(1.03);
        }

        .scroll-down {
            text-align: center;
            margin-top: 30px;
            color: #ff6699;
            font-size: 1.2em;
            animation: bounce 2s infinite;
            cursor: pointer;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-20px); }
            60% { transform: translateY(-10px); }
        }

        .diary-section {
            width: 100%;
            max-width: 900px;
            margin: 0 auto;
            padding: 40px 20px;
            background-color: rgba(255, 255, 255, 0.7);
            border-radius: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            opacity: 0;
            transform: translateY(50px);
            transition: all 1s ease;
            margin-bottom: 50px;
        }

        .diary-section.show {
            opacity: 1;
            transform: translateY(0);
        }

        .diary-title {
            font-size: 2em;
            color: #ff3366;
            text-align: center;
            margin-bottom: 30px;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        .diary-title:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: linear-gradient(to right, #ff6699, #ff3366);
            border-radius: 3px;
        }

        .diary-list {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .diary-item {
            background-color: white;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            position: relative;
            transition: transform 0.3s ease;
        }

        .diary-item:hover {
            transform: translateY(-5px);
        }

        .diary-date {
            font-size: 1.1em;
            color: #ff3366;
            font-weight: bold;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
        }

        .diary-date:before {
            content: '❤';
            margin-right: 8px;
            font-size: 0.9em;
        }

        .diary-content {
            color: #555;
            line-height: 1.8;
            white-space: pre-line;
        }

        .diary-image {
            max-width: 100%;
            border-radius: 8px;
            margin-top: 15px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        }

        .gallery-section {
            width: 100%;
            max-width: 900px;
            margin: 0 auto;
            padding: 40px 20px;
            background-color: rgba(255, 255, 255, 0.7);
            border-radius: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            opacity: 0;
            transform: translateY(50px);
            transition: all 1s ease;
            margin-bottom: 50px;
        }

        .gallery-section.show {
            opacity: 1;
            transform: translateY(0);
        }

        .gallery-title {
            font-size: 2em;
            color: #ff3366;
            text-align: center;
            margin-bottom: 30px;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        .gallery-title:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: linear-gradient(to right, #ff6699, #ff3366);
            border-radius: 3px;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
            aspect-ratio: 1/1;
        }

        .gallery-item:hover {
            transform: scale(1.03);
        }

        .gallery-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .gallery-item:hover .gallery-image {
            transform: scale(1.1);
        }

        .message-board-section {
            width: 100%;
            max-width: 900px;
            margin: 0 auto;
            padding: 40px 20px;
            background-color: rgba(255, 255, 255, 0.7);
            border-radius: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            opacity: 0;
            transform: translateY(50px);
            transition: all 1s ease;
            margin-bottom: 50px;
        }

        .message-board-section.show {
            opacity: 1;
            transform: translateY(0);
        }

        .message-board-title {
            font-size: 2em;
            color: #ff3366;
            text-align: center;
            margin-bottom: 30px;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        .message-board-title:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: linear-gradient(to right, #ff6699, #ff3366);
            border-radius: 3px;
        }

        .message-board-content {
            background-color: white;
            border-radius: 10px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            line-height: 1.8;
            color: #555;
            white-space: pre-line;
            font-size: 1.1em;
        }

        .message-board-signature {
            text-align: right;
            margin-top: 20px;
            font-style: italic;
            color: #ff8fab;
        }

        .nav-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 30px;
        }

        .nav-button {
            background-color: #ff3366;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 30px;
            cursor: pointer;
            font-size: 1em;
            transition: all 0.3s ease;
            box-shadow: 0 3px 10px rgba(255, 51, 102, 0.3);
        }

        .nav-button:hover {
            background-color: #ff6699;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(255, 51, 102, 0.4);
        }

        /* 新增更新时间弹窗样式 */
        .update-notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background-color: rgba(255, 255, 255, 0.9);
            color: #ff3366;
            padding: 10px 15px;
            border-radius: 10px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            display: none;
            animation: slideIn 0.5s ease-out forwards;
            border: 1px solid #ffccdd;
            max-width: 250px;
        }
        
        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        
        .update-notification.hide {
            animation: slideOut 0.5s ease-in forwards;
        }
        
        @keyframes slideOut {
            from {
                transform: translateX(0);
                opacity: 1;
            }
            to {
                transform: translateX(100%);
                opacity: 0;
            }
        }
        
        .update-close {
            position: absolute;
            top: 5px;
            right: 5px;
            background: none;
            border: none;
            color: #ff8fab;
            cursor: pointer;
            font-size: 12px;
        }
        
        .update-title {
            font-weight: bold;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
        }
        
        .update-title:before {
            content: "🕒";
            margin-right: 5px;
        }
        
        .update-content {
            font-size: 14px;
            line-height: 1.4;
        }

        @media (min-width: 768px) {
            .time-counter {
                font-size: 1.2em;
                right: auto;
                width: auto;
                text-align: left;
            }

            .envelope {
                width: 400px;
                height: 280px;
            }

            .envelope:before {
                border-left: 200px solid transparent;
                border-right: 200px solid transparent;
                border-top: 140px solid #e9a5b3;
            }

            .envelope-title {
                font-size: 2em;
            }

            .envelope-heart {
                font-size: 3em;
            }

            .letter-content {
                font-size: 1.5em;
            }

            .text {
                font-size: 3em;
            }

            .heart-container {
                flex-direction: row;
                justify-content: space-around;
                align-items: center;
            }

            .side-text {
                width: 35%;
                font-size: 1.2em;
            }

            .left-text {
                text-align: right;
                padding-right: 20px;
            }

            .right-text {
                text-align: left;
                padding-left: 20px;
            }

            .music-cover {
                width: 50px;
                height: 50px;
            }

            .message-board-content {
                padding: 40px;
                font-size: 1.2em;
            }

            .gallery-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
        }

        @media (min-width: 1200px) {
            .text {
                font-size: 4em;
            }
        }

        @media (max-width: 480px) {
            .heart {
                transform: scale(0.8);
            }

            .timeline:before {
                left: 20px;
            }

            .memory-item:nth-child(odd) .memory-content,
            .memory-item:nth-child(even) .memory-content {
                width: calc(100% - 60px);
                margin-left: 50px;
                text-align: left;
            }

            .memory-date {
                left: 20px;
                transform: translateX(0);
            }

            .memory-item:nth-child(odd) .memory-content:before,
            .memory-item:nth-child(even) .memory-content:before {
                left: -10px;
                right: auto;
            }

            .nav-buttons {
                flex-direction: column;
                gap: 10px;
            }

            .message-board-content {
                padding: 20px;
            }

            .gallery-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }
        }
    </style>
</head>
<body>
<!-- 新增更新时间弹窗 -->
<div class="update-notification" id="updateNotification">
    <button class="update-close" id="updateClose">×</button>
    <div class="update-title">网站更新</div>
    <div class="update-content" id="updateContent"></div>
</div>

<div class="time-counter" id="timeCounter"></div>

<div class="envelope-container">
    <div class="envelope">
        <div class="envelope-front">
            <div class="envelope-title">送给小仙女的一封信</div>
            <div class="envelope-heart">❤</div>
        </div>
        <div class="letter">
            <div class="letter-content">
                <p>亲爱的：</p>
                <p>请查收我的心意</p>
                <p>❤</p>
                <p>愿这封信能传递</p>
                <p>我内心最真挚的情感</p>
            </div>
        </div>
    </div>
</div>

<div class="main-content">
    <div class="text">我喜欢你</div>

    <div class="heart-container">
        <div class="side-text left-text">
            <p>自从遇见你的那一刻，</p>
            <p>我的世界便有了色彩。</p>
            <p>你的笑容如阳光般温暖，</p>
            <p>照亮我生命的每一个角落。</p>
        </div>

        <div class="heart"></div>

        <div class="side-text right-text">
            <p>愿与你携手走过四季，</p>
            <p>分享生活的点点滴滴。</p>
            <p>你是我心中最美的风景，</p>
            <p>此生只想与你共度。</p>
        </div>
    </div>

    <div class="scroll-down" id="scrollDown">▼ 我们的点点滴滴 ▼</div>
</div>

<div class="memories-section" id="memoriesSection">
    <h2 class="memories-title">我们的美好回忆</h2>

    <div class="timeline">
        <div class="memory-item">
            <div class="memory-date">2025年6月26日</div>
            <div class="memory-content">
                <p class="memory-text"></p>
                <img src="" alt="天天开心" class="memory-image">
            </div>
        </div>

        <div class="memory-item">
            <div class="memory-date">2025年6月28日</div>
            <div class="memory-content">
                <p class="memory-text"></p>
                <img src="" alt="天天开心" class="memory-image">
            </div>
        </div>

        <div class="memory-item">
            <div class="memory-date">2025年6月30日</div>
            <div class="memory-content">
                <p class="memory-text"></p>
                <img src="" alt="天天开心" class="memory-image">
            </div>
        </div>

        <div class="memory-item">
            <div class="memory-date">2025年7月1日</div>
            <div class="memory-content">
                <p class="memory-text">天天开心</p>
                <img src="https://img.picui.cn/free/2025/07/02/6864a1cb8a8fe.jpg" alt="天天开心" class="memory-image">
            </div>
        </div>

        <div class="memory-item">
            <div class="memory-date">2025年12月24日</div>
            <div class="memory-content">
                <p class="memory-text"></p>
                <img src="https://img.picui.cn/free/2025/07/02/6864a1cb8a8fe.jpg" alt="天天开心" class="memory-image">
            </div>
        </div>

        <div class="memory-item">
            <div class="memory-date">2026年2月14日</div>
            <div class="memory-content">
                <p class="memory-text"></p>
                <img src="https://img.picui.cn/free/2025/07/02/6864a1cb8a8fe.jpg" alt="天天开心" class="memory-image">
            </div>
        </div>
    </div>

    <div class="nav-buttons">
        <button class="nav-button" id="toDiaryBtn">你对我写的日记</button>
        <button class="nav-button" id="toGalleryBtn">照片墙</button>
        <button class="nav-button" id="toMessageBoardBtn">写给你的信</button>
    </div>
</div>

<div class="diary-section" id="diarySection">
    <h2 class="diary-title">你每天写的日记我都会存在这个网站</h2>

    <div class="diary-list" id="diaryList">
    </div>

    <div class="nav-buttons">
        <button class="nav-button" id="backFromDiaryBtn">返回美好回忆</button>
        <button class="nav-button" id="toGalleryFromDiaryBtn">照片墙</button>
        <button class="nav-button" id="toMessageBoardFromDiaryBtn">写给你的信</button>
    </div>
</div>

<div class="gallery-section" id="gallerySection">
    <h2 class="gallery-title">我们的照片墙</h2>
    
    <div class="gallery-grid" id="galleryGrid">
    </div>

    <div class="nav-buttons">
        <button class="nav-button" id="backFromGalleryBtn">返回美好回忆</button>
        <button class="nav-button" id="toMessageBoardFromGalleryBtn">写给你的信</button>
    </div>
</div>

<div class="message-board-section" id="messageBoardSection">
    <h2 class="message-board-title">写给你的信</h2>

    <div class="message-board-content">
        亲爱的：

        第一次遇见你我以为你跟我开玩笑谈对象，然后我慢慢发现你确实需要一个爱你的对象，虽然我长得不好看声音也不好听，你喜不喜欢我你自己决定

        你总是能在我最需要的时候给我温暖让我的所有的烦恼都能暂时搁置。

        喜欢你偶尔的小任性。每一个和你在一起的瞬间，都让我觉得生活如此美好。

        我发誓，我会对你负责任的，所有欺负你的人我加倍还回去，因为你是我的女人。

        这回的结果是什么 ， 我不知道 但是我会珍惜我跟你在一起的时光 我本来想隐藏我是个抑郁症的问题，你发现了，我在想你会不会喜欢一个嗑药的男生，于是我一直在戒，每天在等你的消息。

        你写的字很好看，长得也是，我可能并不是你想象中学习这么好，我缺陷是学习不好，我真心希望和你在一起。直到永远...不分离...

        谢谢你出现在我的生命里，谢谢你包容我的所有不完美。未来的路还很长，我希望能牵着你的手，一起看遍世间美景，一起经历人生百态。无论顺境逆境，我都会在你身边，就像你一直在我身边一样。

        <div class="message-board-signature">
            永远爱你的我<br>
            2025年7月1日
        </div>
    </div>

    <div class="nav-buttons">
        <button class="nav-button" id="backFromMessageBoardBtn">返回美好回忆</button>
    </div>
</div>

<div class="music-player" id="musicPlayer">
    <img src="https://tc.z.wiki/autoupload/xm_-rWxylbT20-hodgD_bxLsFZ1w1WKI39LF0VbAshSyl5f0KlZfm6UsKj-HyTuv/20250630/UIOk/940X940/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_2025-06-30_204434_459.jpg" alt="专辑封面" class="music-cover" id="musicCover">
    <div class="music-info-container">
        <div class="music-title" id="musicTitle">心似烟火</div>
        <div class="music-artist" id="musicArtist">JiuShi</div>
        <div class="music-controls">
            <button class="play-btn" id="playBtn">▶</button>
            <div class="progress-container" id="progressContainer">
                <div class="progress-bar" id="progressBar"></div>
            </div>
        </div>
    </div>
</div>

<div class="hearts" id="hearts"></div>

<script>
    // 新增更新时间弹窗功能
    function showUpdateNotification() {
        const now = new Date();
        const updateTime = now.toLocaleString('zh-CN', {
            year: 'numeric',
            month: 'long',
            day: 'numeric',
            hour: '2-digit',
            minute: '2-digit'
        });
        
        const updateContent = document.getElementById('updateContent');
        updateContent.textContent = `最近更新: ${updateTime}`;
        
        const notification = document.getElementById('updateNotification');
        notification.style.display = 'block';
        
        // 5秒后自动隐藏
        setTimeout(() => {
            notification.classList.add('hide');
            setTimeout(() => {
                notification.style.display = 'none';
                notification.classList.remove('hide');
            }, 500);
        }, 5000);
    }
    
    document.getElementById('updateClose').addEventListener('click', function() {
        const notification = document.getElementById('updateNotification');
        notification.classList.add('hide');
        setTimeout(() => {
            notification.style.display = 'none';
            notification.classList.remove('hide');
        }, 500);
    });
    
    // 页面加载3秒后显示更新通知
    setTimeout(showUpdateNotification, 3000);

    function calculateDaysTogether() {
        const meetDate = new Date('2025-06-26');
        const today = new Date();
        const timeDiff = today - meetDate;
        const daysTogether = Math.floor(timeDiff / (1000 * 60 * 60 * 24));

        const counterElement = document.getElementById('timeCounter');
        counterElement.textContent = `我们从2025年6月26日相见 目前已经坚持了${daysTogether}天`;
    }

    calculateDaysTogether();
    setInterval(calculateDaysTogether, 86400000);

    function createHearts() {
        const heartsContainer = document.getElementById('hearts');
        const heart = document.createElement('div');
        heart.innerHTML = '❤';
        heart.classList.add('floating-heart');

        const left = Math.random() * 100;
        const delay = Math.random() * 3;
        const size = Math.random() * 10 + 10;

        heart.style.left = `${left}%`;
        heart.style.bottom = '0';
        heart.style.animationDelay = `${delay}s`;
        heart.style.fontSize = `${size}px`;

        heartsContainer.appendChild(heart);

        setTimeout(() => {
            heart.remove();
        }, 4000);
    }

    setInterval(createHearts, 300);

    document.querySelector('.envelope-container').addEventListener('click', function() {
        this.style.animation = 'fadeOut 0.5s ease-in-out forwards';
        document.querySelector('.main-content').style.animation = 'fadeInMain 0.5s ease-in-out forwards';
        document.querySelector('.time-counter').style.animation = 'fadeIn 0.5s ease-in-out forwards';
        document.getElementById('musicPlayer').style.animation = 'fadeIn 0.5s ease-in-out forwards';
    });

    document.addEventListener('DOMContentLoaded', function() {
        const musicPlayer = document.getElementById('musicPlayer');
        const playBtn = document.getElementById('playBtn');
        const progressContainer = document.getElementById('progressContainer');
        const progressBar = document.getElementById('progressBar');
        const musicTitle = document.getElementById('musicTitle');
        const musicArtist = document.getElementById('musicArtist');
        const musicCover = document.getElementById('musicCover');

        const audio = new Audio();
        audio.src = 'http://music.163.com/song/media/outer/url?id=1399112638.mp3';
        audio.loop = true;

        const songInfo = {
            title: "心似烟火",
            artist: "NianNian520",
            cover: "https://tc.z.wiki/autoupload/xm_-rWxylbT20-hodgD_bxLsFZ1w1WKI39LF0VbAshSyl5f0KlZfm6UsKj-HyTuv/20250630/UIOk/940X940/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_2025-06-30_204434_459.jpg"
        };

        musicTitle.textContent = songInfo.title;
        musicArtist.textContent = songInfo.artist;
        musicCover.src = songInfo.cover;

        audio.addEventListener('timeupdate', function() {
            const progress = (audio.currentTime / audio.duration) * 100;
            progressBar.style.width = `${progress}%`;
        });

        progressContainer.addEventListener('click', function(e) {
            const width = this.clientWidth;
            const clickX = e.offsetX;
            const duration = audio.duration;
            audio.currentTime = (clickX / width) * duration;
        });

        playBtn.addEventListener('click', function() {
            if (audio.paused) {
                audio.play();
                playBtn.textContent = '❚❚';
                musicCover.classList.add('rotate');
            } else {
                audio.pause();
                playBtn.textContent = '▶';
                musicCover.classList.remove('rotate');
            }
        });

        document.body.addEventListener('click', function initAudio() {
            audio.play().then(() => {
                audio.pause();
                playBtn.textContent = '▶';
                musicCover.classList.remove('rotate');
            }).catch(e => {});
            document.body.removeEventListener('click', initAudio);
        }, { once: true });

        audio.addEventListener('ended', function() {
            progressBar.style.width = '0%';
        });

        window.addEventListener('resize', function() {
            const heart = document.querySelector('.heart');
            heart.style.display = 'none';
            heart.offsetHeight;
            heart.style.display = 'block';
        });

        document.getElementById('scrollDown').addEventListener('click', function() {
            document.getElementById('memoriesSection').scrollIntoView({
                behavior: 'smooth'
            });
        });

        const observer = new IntersectionObserver((entries) => {
            entries.forEach(entry => {
                if (entry.isIntersecting) {
                    entry.target.classList.add('show');
                }
            });
        }, { threshold: 0.1 });

        observer.observe(document.getElementById('memoriesSection'));
        observer.observe(document.getElementById('diarySection'));
        observer.observe(document.getElementById('gallerySection'));
        observer.observe(document.getElementById('messageBoardSection'));

        document.getElementById('toDiaryBtn').addEventListener('click', function() {
            document.getElementById('memoriesSection').style.display = 'none';
            document.getElementById('gallerySection').style.display = 'none';
            document.getElementById('messageBoardSection').style.display = 'none';
            document.getElementById('diarySection').style.display = 'block';
            document.getElementById('diarySection').scrollIntoView({
                behavior: 'smooth'
            });
            loadDiaries();
        });

        document.getElementById('toGalleryBtn').addEventListener('click', function() {
            document.getElementById('memoriesSection').style.display = 'none';
            document.getElementById('diarySection').style.display = 'none';
            document.getElementById('messageBoardSection').style.display = 'none';
            document.getElementById('gallerySection').style.display = 'block';
            document.getElementById('gallerySection').scrollIntoView({
                behavior: 'smooth'
            });
            loadGallery();
        });

        document.getElementById('toMessageBoardBtn').addEventListener('click', function() {
            document.getElementById('memoriesSection').style.display = 'none';
            document.getElementById('diarySection').style.display = 'none';
            document.getElementById('gallerySection').style.display = 'none';
            document.getElementById('messageBoardSection').style.display = 'block';
            document.getElementById('messageBoardSection').scrollIntoView({
                behavior: 'smooth'
            });
        });

        document.getElementById('toGalleryFromDiaryBtn').addEventListener('click', function() {
            document.getElementById('memoriesSection').style.display = 'none';
            document.getElementById('diarySection').style.display = 'none';
            document.getElementById('messageBoardSection').style.display = 'none';
            document.getElementById('gallerySection').style.display = 'block';
            document.getElementById('gallerySection').scrollIntoView({
                behavior: 'smooth'
            });
            loadGallery();
        });

        document.getElementById('toMessageBoardFromDiaryBtn').addEventListener('click', function() {
            document.getElementById('memoriesSection').style.display = 'none';
            document.getElementById('diarySection').style.display = 'none';
            document.getElementById('gallerySection').style.display = 'none';
            document.getElementById('messageBoardSection').style.display = 'block';
            document.getElementById('messageBoardSection').scrollIntoView({
                behavior: 'smooth'
            });
        });

        document.getElementById('toMessageBoardFromGalleryBtn').addEventListener('click', function() {
            document.getElementById('memoriesSection').style.display = 'none';
            document.getElementById('diarySection').style.display = 'none';
            document.getElementById('gallerySection').style.display = 'none';
            document.getElementById('messageBoardSection').style.display = 'block';
            document.getElementById('messageBoardSection').scrollIntoView({
                behavior: 'smooth'
            });
        });

        document.getElementById('backFromDiaryBtn').addEventListener('click', function() {
            document.getElementById('diarySection').style.display = 'none';
            document.getElementById('gallerySection').style.display = 'none';
            document.getElementById('messageBoardSection').style.display = 'none';
            document.getElementById('memoriesSection').style.display = 'block';
            document.getElementById('memoriesSection').scrollIntoView({
                behavior: 'smooth'
            });
        });

        document.getElementById('backFromGalleryBtn').addEventListener('click', function() {
            document.getElementById('diarySection').style.display = 'none';
            document.getElementById('gallerySection').style.display = 'none';
            document.getElementById('messageBoardSection').style.display = 'none';
            document.getElementById('memoriesSection').style.display = 'block';
            document.getElementById('memoriesSection').scrollIntoView({
                behavior: 'smooth'
            });
        });

        document.getElementById('backFromMessageBoardBtn').addEventListener('click', function() {
            document.getElementById('diarySection').style.display = 'none';
            document.getElementById('gallerySection').style.display = 'none';
            document.getElementById('messageBoardSection').style.display = 'none';
            document.getElementById('memoriesSection').style.display = 'block';
            document.getElementById('memoriesSection').scrollIntoView({
                behavior: 'smooth'
            });
        });

        document.getElementById('diarySection').style.display = 'none';
        document.getElementById('gallerySection').style.display = 'none';
        document.getElementById('messageBoardSection').style.display = 'none';

        function loadDiaries() {
            const diaryList = document.getElementById('diaryList');
            diaryList.innerHTML = '';

            const diaries = [
                {
                    date: '2025年6月29日',
                    content: '',
                    image: ''
                },
                {
                    date: '2025年6月30日',
                    content: '',
                    image: ''
                },
                {
                    date: '',
                    content: '',
                    image: 'https://via.placeholder.com/500x300/ffe6f2/ff6699?text=Video+Chat'
                },
                {
                    date: '',
                    content: '',
                    image: ''
                },
                {
                    date: '',
                    content: '',
                    image: 'https://via.placeholder.com/500x300/ffe6f2/ff6699?text=Dinner+Date'
                },
                {
                    date: '',
                    content: '',
                    image: ''
                }
            ];

            diaries.forEach(diary => {
                const diaryItem = document.createElement('div');
                diaryItem.className = 'diary-item';

                let diaryHTML = `
                    <div class="diary-date">${diary.date}</div>
                    <div class="diary-content">${diary.content}</div>
                `;

                if (diary.image) {
                    diaryHTML += `<img src="${diary.image}" alt="${diary.date}的日记图片" class="diary-image">`;
                }

                diaryItem.innerHTML = diaryHTML;
                diaryList.appendChild(diaryItem);
            });
        }

        function loadGallery() {
            const galleryGrid = document.getElementById('galleryGrid');
            galleryGrid.innerHTML = '';

            const photos = [
                '',
                '',
                '',
                '',
                '',
                '',
                '',
                '',
                '',
                '',
                '',
                ''
            ];

            photos.forEach(photo => {
                const galleryItem = document.createElement('div');
                galleryItem.className = 'gallery-item';
                
                const img = document.createElement('img');
                img.src = photo;
                img.alt = '我们的照片';
                img.className = 'gallery-image';
                
                galleryItem.appendChild(img);
                galleryGrid.appendChild(galleryItem);
            });
        }
    });
</script>
</body>
</html>